package com.chery.media.ui.radio

import android.annotation.SuppressLint
import android.content.IntentFilter
import android.hardware.usb.UsbManager
import android.os.Bundle
import com.chery.media.contacts.ActionContacts
import com.chery.media.databinding.ActivityRadioBinding
import com.chery.media.library.base.BaseVMActivity
import com.chery.media.library.extend.statusBarTransparent
import com.chery.media.utils.StorageManagerUtils
import com.chery.media.utils.USBBroadcastReceiver

class RadioActivity: BaseVMActivity<RadioViewModel, ActivityRadioBinding>() {

    private val collectAdapter by lazy {
        RadioAdapter().apply {
            setOnItemClickListener { adapter, view, position ->
                setSelect(position)
            }
        }
    }

    override fun initView(savedInstanceState: Bundle?) {
        statusBarTransparent()
        mBinding.collectChannel.adapter = collectAdapter
        collectAdapter.setList(viewModel.collectChannels)
    }

    override fun initData() {
    }

}